package text.text;

import java.util.Objects;

public class Student {
    int age;
    String name;
    public Student( String name,int age){
        this.age=age;
        this.name=name;
    }

    @Override
    public String toString() {
        return "我叫"+name+",今年"+age+"岁了";
    }

    @Override
    public boolean equals(Object obj) {
        Student student = (Student) obj;
        return this.name.equals(student.name);

    }
}
